const path = require('path');//引入path模块
function resolve(dir){
    return path.join(__dirname,dir)//path.join(__dirname)设置绝对路径
}

console.log(resolve('src/lib'))

module.exports = {
	publicPath: process.env.NODE_ENV === 'gitee_pages' ? '/yubi-vue-template' : '/',
  // configureWebpack: {
  //   name: '测试用',
  //   resolve: {
  //     alias: {
  //       '@lib': resolve('src/lib')
  //     }
  //   }
  // }
  configureWebpack: {
    // provide the app's title in webpack's name field, so that
    // it can be accessed in index.html to inject the correct title.
    resolve: {
      alias: {
        '@': resolve('src'),
        '~': resolve('src/lib'),
      }
    }
  },
};